<?php
declare(strict_types=1);
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/7
 * Time: 14:58
 */

namespace ServerApp\lib\process_2;

use Swoole\Process;
use Swoole\Server;

/**
 * Class SGlobal
 * @package ServerApp\lib\process_2
 */
class SGlobal
{
    /**
     * @var Process
     */
    public $process = null;

    /**
     * @var Server
     */
    public $server = null;

    public $child_process_pids = [];

    private function __construct()
    {
    }

    private static $instance;

    /**
     * @return null|SGlobal
     */
    public static function getInstance()
    {
        if (self::$instance === null) {
            self::$instance = new self();
        }
        return self::$instance;
    }
}
